<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/2/21 0021
 * Time: 下午 17:17
 */

namespace Org\Menu;

class Menu {
    function __construct(){
        $this->menu = [
            'system' => array('name' => '系统设置', 'icon' => 'fa-cog', 'sub_menu' => array(
                array('name' => '网站设置', 'act' => 'index', 'control' => 'System'),
                array('name' => '友情链接', 'act' => 'linkList', 'control' => 'Article'),
                array('name' => '自定义导航', 'act' => 'navigationList', 'control' => 'System'),
                array('name' => '区域管理', 'act' => 'region', 'control' => 'Tools'),
                array('name' => '权限资源列表', 'act' => 'rightList', 'control' => 'System'),
            )),
            'access' => array('name' => '权限管理', 'icon' => 'fa-gears', 'sub_menu' => array(
                array('name' => '管理员列表', 'act' => 'index', 'control' => 'Admin'),
                array('name' => '角色管理', 'act' => 'role', 'control' => 'Admin'),
                array('name' => '供应商管理', 'act' => 'supplier', 'control' => 'Admin'),
                array('name' => '管理员日志', 'act' => 'log', 'control' => 'Admin'),
            )),
//        'module' => array('name' => '模块管理', 'icon' => 'fa-gears', 'sub_menu' => array(
//                array('name' => '菜单管理', 'act' => 'index2', 'control' => 'Admin'),
//                array('name' => '模块列表', 'act' => 'role2', 'control' => 'Admin'),
//            )),
            'member' => array('name' => '会员管理', 'icon' => 'fa-user', 'sub_menu' => array(
                array('name' => '会员列表', 'act' => 'index', 'control' => 'User'),
                array('name' => '会员等级', 'act' => 'levelList', 'control' => 'User'),
                array('name' => '充值记录', 'act' => 'recharge', 'control' => 'User'),
                array('name' => '余额提现', 'act' => 'account', 'control' => 'User'),
//                array('name' => '会员整合', 'act' => 'integrate', 'control' => 'User'),
            )),
            'goods' => array('name' => '商品管理', 'icon' => 'fa-book', 'sub_menu' => array(
                array('name' => '商品分类', 'act' => 'categoryList', 'control' => 'Goods'),
                array('name' => '商品列表', 'act' => 'goodsList', 'control' => 'Goods'),
                array('name' => '商品类型', 'act' => 'goodsTypeList', 'control' => 'Goods'),
                array('name' => '商品规格', 'act' => 'specList', 'control' => 'Goods'),
                array('name' => '商品属性', 'act' => 'goodsAttrList', 'control' => 'Goods'),
                array('name' => '品牌列表', 'act' => 'brandList', 'control' => 'Goods'),
                array('name' => '商品评论', 'act' => 'index', 'control' => 'Comment'),
                array('name' => '商品咨询', 'act' => 'askList', 'control' => 'Comment'),
            )),
            'order' => array('name' => '订单管理', 'icon' => 'fa-money', 'sub_menu' => array(
                array('name' => '订单列表', 'act' => 'index', 'control' => 'Order'),
                array('name' => '发货单', 'act' => 'deliveryList', 'control' => 'Order'),
//                array('name' => '快递单', 'act'=>'express_list', 'control'=>'Order'),
                array('name' => '退货单', 'act' => 'returnList', 'control' => 'Order'),
                array('name' => '添加订单', 'act' => 'addOrder', 'control' => 'Order'),
                array('name' => '订单日志', 'act' => 'orderLog', 'control' => 'Order'),
            )),
            'promotion' => array('name' => '促销管理', 'icon' => 'fa-bell', 'sub_menu' => array(
                array('name' => '拼团管理', 'act' => 'fightGroupList', 'control' => 'Promotion'),
                array('name' => '抢购管理', 'act' => 'limitBuy', 'control' => 'Promotion'),
                array('name' => '团购管理', 'act' => 'goodsGrouponList', 'control' => 'Promotion'),
                array('name' => '商品促销', 'act' => 'actionGoodsList', 'control' => 'Promotion'),
                array('name' => '订单促销', 'act' => 'actionOrderList', 'control' => 'Promotion'),
                array('name' => '优惠券管理', 'act' => 'index', 'control' => 'Coupon'),
            )),
            'Ad' => array('name' => '广告管理', 'icon' => 'fa-flag', 'sub_menu' => array(
                array('name' => '广告列表', 'act' => 'adList', 'control' => 'Ad'),
                array('name' => '广告位置', 'act' => 'positionList', 'control' => 'Ad'),
            )),
            'content' => array('name' => '内容管理', 'icon' => 'fa-comments', 'sub_menu' => array(
                array('name' => '文章列表', 'act' => 'articleList', 'control' => 'Article'),
                array('name' => '文章分类', 'act' => 'categoryList', 'control' => 'Article'),
//                array('name' => '帮助管理', 'act'=>'helpList', 'control'=>'Article'),
//                array('name' => '公告管理', 'act'=>'noticeList', 'control'=>'Article'),
//                array('name' => '专题列表', 'act' => 'specialList', 'control' => 'Special'),
            )),
            'weixin' => array('name' => '微信管理', 'icon' => 'fa-weixin', 'sub_menu' => array(
                array('name' => '公众号管理', 'act' => 'index', 'control' => 'Wechat'),
                array('name' => '微信菜单管理', 'act' => 'menu', 'control' => 'Wechat'),
                array('name' => '文本回复', 'act' => 'text', 'control' => 'Wechat'),
                array('name' => '图文回复', 'act' => 'img', 'control' => 'Wechat'),
                array('name' => '消息推送', 'act' => 'news', 'control' => 'Wechat'),
                array('name' => '组合回复', 'act' => 'nes', 'control' => 'Wechat'),
//                array('name' => '抽奖活动', 'act' => 'nes', 'control' => 'Wechat'),
            )),
            'application' => array('name' => '应用中心', 'icon' => 'fa-adjust', 'sub_menu' => array(
                array('name' => '应用列表', 'act' => 'index', 'control' => 'Application')
            )),

            'theme' => array('name' => '模板管理', 'icon' => 'fa-adjust', 'sub_menu' => array(
                array('name' => 'PC端模板', 'act' => 'templateList?t=pc', 'control' => 'Template'),
                array('name' => '手机端模板', 'act' => 'templateList?t=mobile', 'control' => 'Template'),
            )),
            'tools' => array('name' => '插件工具', 'icon' => 'fa-plug', 'sub_menu' => array(
                array('name' => '插件列表', 'act' => 'index', 'control' => 'Plugin'),
//                array('name' => '数据备份', 'act' => 'index', 'control' => 'Tools'),
//                array('name' => '数据还原', 'act' => 'restore', 'control' => 'Tools'),
            )),
            'count' => array('name' => '统计报表', 'icon' => 'fa-signal', 'sub_menu' => array(
//                array('name' => '销售概况', 'act' => 'index', 'control' => 'Report'),
                array('name' => '销售排行', 'act' => 'saleTop', 'control' => 'Report'),
                array('name' => '会员排行', 'act' => 'userTop', 'control' => 'Report'),
                array('name' => '销售明细', 'act' => 'saleList', 'control' => 'Report'),
                array('name' => '会员统计', 'act' => 'user', 'control' => 'Report'),
                array('name' => '财务统计', 'act' => 'finance', 'control' => 'Report'),
            )),
//            'pick' => array('name' => '自提点管理', 'icon' => 'fa-anchor', 'sub_menu' => array(
//                array('name' => '自提点列表', 'act' => 'index', 'control' => 'Pick'),
//                array('name' => '添加自提点', 'act' => 'add', 'control' => 'Pick'),
//            ))
        ];
    }

}